package com.sk.bilibili.apiMapper.component.converter;


import com.sk.bilibili.apiMapper.interfaces.StringConverter;

/**
 * @author 邵康
 * @date 2021/7/10 21:32
 */
public class LongConverter implements StringConverter {

    @Override
    public int order() {
        return 3333;
    }

    @Override
    public boolean support(Class clazz) {
        return Long.class.equals(clazz);
    }

    @Override
    public Object converter(String src) {
        return Long.parseLong(src);
    }

}
